package com.example.myadmin.dept.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.myadmin.dept.entity.Dept;
import com.example.myadmin.dept.mapper.DeptMapper;
import com.example.myadmin.dept.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper,Dept> implements DeptService {
    @Override
    public List<Dept> getAllDept() {
        return this.list(null);
    }
}
